<template>
  <div class="page">
    <NavHeader :header="header" :isBack="isBack">
    </NavHeader>
    <div style="height: 20rpx"></div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
import NavHeader from "./NavHeader.vue";

export default {
  name: "index",
  props: {
    header: {
      type: String,
      default: ''
    },
    isBack: {
      type: Boolean,
      default: false
    }
  },
  components: {NavHeader},
  data() {
    return {
    }
  },
  methods: {
  }

}
</script>

<style lang="scss">
page {
  height: 100%;
  overflow: hidden;
}
.page {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 50rpx;
  .content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
}
</style>
